package me.xiaoyan.ehr.service;

import com.baomidou.mybatisplus.extension.service.IService;
import me.xiaoyan.ehr.po.VerifyToken;

public interface VerifyTokenService extends IService<VerifyToken> {
    /**
     * 给邮箱发送验证码
     *
     * @param email      邮箱
     * @param expireTime 过期时间
     */
    public void sendCode(String email, int expireTime);


    public boolean validate(String email,String token);

    public void deleteAllExpireToken();
}
